package com.wyy.service;

import com.wyy.beans.*;
import com.wyy.common.Result;

import java.util.List;
import java.util.Map;

public interface ParkLotService {


    Result<ParkLot> addParkLot(ParkLot parkLot);

    Result<ParkLot> updateParkLotSpace(ParkLot parkLot);

    Result<Ticket> park(Car car, Driver driver);

    Result<List<Ticket>> huddleParking(List<Car> cars, List<Driver> drivers);

    ParkLot getConditionsMetParkLot(Driver driver, int parkCarSize);

    Result<Car> parkUp(Ticket ticket, Driver driver);

    Result<ParkLot> getParkLot(String parkLotNo);

    Result<Ticket> getParkMsg(String licensePlateNo);

    Result<Map<Double, ParkLot>> getAroundParkLotDistance(Driver driver);

    double getDistance(Driver driver, ParkLot parkLot);

    Result<List<ParkLot>> getParkLots();

}
